Replpicate answers from one attribute to another

Okay, I'm here again.
I'll try to explain the situation as best as I can.
I have a GUI, that GUI have questions for two diferents of projects. (two SelectChoice)
I was trying the following:
-> Once I respond to the questions of the project A, I press a button and this button call a function that get the answers from project A and replicate it in project B.

The problem is that in a module, the first dxl that is being show bellow worked, but it did not work in other modules.

If possible can anyone take a look, because right now, I can't see the problem, nor thing in another approach for this case.

void Replicate(DBE calledFrom) {    
if((isMember(obj."Applicability", "L450"))&&(isMember(obj."Applicability", "L500"))){
if (get(selectChoiceQ1SYS) == "YES") {
obj."Validation QSYSL1" = "YES" 
        }
if (get(selectChoiceQ2SYS) == "YES") {
obj."Validation QSYSL2" = "YES" 
        }
if (get(selectChoiceQ1HF) == "YES") {
obj."Validation QHFL1" = "YES" 
        }
if (get(selectChoiceQ2HF) == "YES") {
obj."Validation QHFL2" = "YES" 
        }
if (get(selectChoiceQ1SYS) == "NO") {
obj."Validation QSYSL1" = "NO" 
        }
if (get(selectChoiceQ2SYS) == "NO") {
obj."Validation QSYSL2" = "NO" 
        }
if (get(selectChoiceQ1HF) == "NO") {
obj."Validation QHFL1" = "NO" 
        }
if (get(selectChoiceQ2HF) == "NO") {
obj."Validation QHFL2" = "NO" 
        }    
if (get(selectChoiceQ1SYS) == "N/A") {
obj."Validation QSYSL1" = "N/A" 
        }
if (get(selectChoiceQ2SYS) == "N/A") {
obj."Validation QSYSL2" = "N/A" 
        }
if (get(selectChoiceQ1HF) == "N/A") {
obj."Validation QHFL1" = "N/A" 
        }
if (get(selectChoiceQ2HF) == "N/A") {
obj."Validation QHFL2" = "N/A" 
        }            
  }
}

I also tried this:

void Replicate(DBE calledFrom) {    
string aux = ""
bool wasModified = false
if(((isMember(obj."Applicability", "L450"))&&(isMember(obj."Applicability", "L500")))|| isMember(obj."Applicability", "L450")){
        
        aux = get(selectChoiceQ1SYS)
        if(obj."Validation QSYSL1" "" != aux) {
                obj."Validation QSYSL1" = aux
        wasModified = true
        }
        
        aux = get(selectChoiceQ2SYS)
        if(obj."Validation QSYSL2" "" != aux) {
                obj."Validation QSYSL2" = aux
        wasModified = true
        }
        
        aux = get(selectChoiceQ1HF)
        if(obj."Validation QHFL1" "" != aux) {
                obj."Validation QHFL1" = aux
        wasModified = true      
        }
        
        aux = get(selectChoiceQ2HF)
        if(obj."Validation QHFL2" "" != aux) {
                obj."Validation QHFL2" = aux
        wasModified = true      
        }
  }
}

Thanks!

 

 


Bruwbruw - Fri Sep 28 14:16:13 EDT 2012